package com.zenagro.actions;

import java.io.*;

import org.hibernate.mapping.*;
import org.openxava.actions.*;
import org.openxava.util.*;

import com.zenagro.utils.*;

public class DeleteCustomAction extends DeleteAction {

	
	@Override
	public void execute() throws Exception {
		java.util.Map keyValues=getView().getKeyValues();
		  File folderModel=new File(FileEntityUtils.pathRepo+File.separator+this.getModelName()+File.separator+keyValues.get("id"));
		  Files.deleteDir(folderModel);
		super.execute();
	}
}
